﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Refugees.Repositories
{
    internal class NewsRepository : ModelRepository
    {

        internal List<Models.News> GetNews()
        {
            return Context.News.ToList();
        }

        internal void AddNews(Models.News news)
        {
            news.DatePublication = DateTime.Now;
            Context.News.Add(news);
        }
    }
}
